package com.rtx.wms.std.cc.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.rtx.api.annotation.DataSourceAnnotation;
import com.rtx.wms.std.cc.bean.ApiCCFinish;
import com.rtx.wms.std.cc.mapper.ApiCCFinishMapper;
import com.rtx.wms.std.cc.service.ApiCCFinishService;

@Service
public class ApiCCFinishServiceImpl extends ServiceImpl<ApiCCFinishMapper, ApiCCFinish> implements ApiCCFinishService{

	@DataSourceAnnotation
	@Override
	public void insert(String datasourcekey, ApiCCFinish finish) {
		this.save(finish);
	}

	@DataSourceAnnotation
	@Override
	public List<ApiCCFinish> queryByCondition(String datasourcekey, Wrapper<ApiCCFinish> query) {
		return this.list();
	}

	@DataSourceAnnotation
	@Override
	public void updStatus(String datasourcekey, Wrapper<ApiCCFinish> upd) {
		this.update(upd);
	}
}
